<template>
    <el-carousel height="650px">
      <el-carousel-item v-for="item in images" :key="item.index">
        <img :src="item.url" alt="宣传图"/>
      </el-carousel-item>
    </el-carousel>
</template>

<script>
export default {
  name: 'Welcome',
  data() {
    return {
      images: [
        { url: require("@/assets/1.jpg")},
        { url: require("@/assets/2.jpg")},
        { url: require("@/assets/3.jpg")},
        { url: require("@/assets/4.jpg")}
      ],
    };
  },
}
</script>

<style scoped>
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.test{
  position: absolute;
  text-align: center;
  z-index: 99;
}

</style>
